package com.order.api.dao;

import com.order.api.po.TblRolePermissions;
import com.order.api.po.TblRolePermissionsExample;
import java.util.List;

import com.order.api.vo.response.MenuListResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TblRolePermissionsDao {
    long countByExample(TblRolePermissionsExample example);

    int deleteByExample(TblRolePermissionsExample example);

    int insert(TblRolePermissions record);

    int insertSelective(TblRolePermissions record);

    List<TblRolePermissions> selectByExample(TblRolePermissionsExample example);

    int updateByExampleSelective(@Param("record") TblRolePermissions record, @Param("example") TblRolePermissionsExample example);

    int updateByExample(@Param("record") TblRolePermissions record, @Param("example") TblRolePermissionsExample example);

    /**
     * 查询角色可见菜单
     * @param roleId
     * @return
     */
    List<MenuListResponse> findMenuRoleId(Long roleId);
}